package com.fingard.dsp.bank.reqrespobj.retailstockmsg;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.retailMsg.ReqRetailMsgQryDetail;
import com.fingard.xml.XmlTextReader;

public class ReqRetailStockMsgQry extends RequestBase {
    //接入机构号
    public String CHANNEL_CODE="";
    //总笔数
    public String Z_BISHU="";
    
    private XmlTextReader xmlReader;

    public ReqRetailStockMsgQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        CHANNEL_CODE = xmlReader.getSimpleText("CHANNEL_CODE");
        Z_BISHU = xmlReader.getSimpleText("Z_BISHU");
    }
    
    public ReqRetailStockMsgQryDetail ReqDetail;
    public boolean readRecord() throws Exception{
    	ReqDetail = null;
        if(xmlReader.read(PATH_Detail)){
        	ReqDetail = new ReqRetailStockMsgQryDetail(xmlReader.readedXElement);
            return true;
        }
        else{
            return false;
        }
    }
}

